
public class Test2 {
    //
    public static void main(String[] args) {
        StringBuilder stringBuilder=new StringBuilder("abc");
        stringBuilder.reverse();//逆置

        System.out.println(stringBuilder);
        String str1=stringBuilder.toString();
        System.out.println(str1);
    }
}
